-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Move examples of rendering elements from CodePen into ./examples #470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move examples of rendering elements from CodePen into ./examples #470
Conversation
Deploy preview for reactjs ready! Built with commit 72e7547 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
Interested in using the gatsby-remark-embed-snippet
plugin to remove the examples from the markdown too? 😁
content/docs/rendering-elements.md
Outdated
@@ -72,7 +72,7 @@ function tick() { | |||
setInterval(tick, 1000); | |||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also replace this whole inline example above!
content/docs/rendering-elements.md
Outdated
@@ -43,7 +43,7 @@ ReactDOM.render( | |||
); | |||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also replace the inline example above by embedding the new snippet too, like we do for the "file" input type. 😁
This is possible using the gatsby-remark-embed-snippet
plugin
Check out PR #323 for another example of this.
Thanks for the suggestions! I will implement them this weekend. |
All done @bvaughn. Can you please take another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dig it~
Move two examples in the Rendering Elements Quickstart article from CodePen to the
examples
directory. This follows up on the work in #246.